package com.project.client.mapper;

import com.project.client.domain.AreaInfoEntity;
import com.project.common.dao.BaseDao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 城市Mapper接口
 *
 * @author scorpio
 * @date 2020-10-10
 */
@Mapper
public interface AreaInfoMapper extends BaseDao<AreaInfoEntity> {
    AreaInfoEntity selectByName(String name);
    AreaInfoEntity selectByCode(String areaCode);
    List<AreaInfoEntity> selectByCodes(String areaCodes);
    List<AreaInfoEntity> selectByLevel(@Param("startLevel") Long startLevel,@Param("endLenel") Long endLenel);
}
